var fs = require('fs')
// fs.readFile('s.txt',function())
var http = require('http')
var service = http.createServer()
service.on('request', function (req, res) {
    console.log(req.url)
    res.write('111')
    fs.readFile('s.txt', function (error, data) {
        res.write(data + '1111')
        res.end('111')
        console.log(data)
    })
    res.write('2222')

})
service.listen(3000, function () {
    console.log('ok')
})

